package com.jbit.hxy.service.user;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jbit.hxy.common.Result;
import com.jbit.hxy.model.dto.RegisterUserDTO;
import com.jbit.hxy.model.po.WxUser;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

public interface WxUserService extends IService<WxUser> {

    /**
     * 根据openId获取用户信息
     * @param openId
     * @return
     */
    WxUser getUserByOpenId(String openId);

    /**
     * 根据手机号获取用户信息
     * @param phoneNumber
     * @return
     */
    WxUser getUserByPhoneNumber(String phoneNumber);


    /**
     * 创建新用户
     * @param user
     * @return
     */
    int createUser(WxUser user);

}
